﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">

  <class name="VisualAgile.Model.Release, VisualAgile.Model" table="Release"  lazy="true">

    <id name="ReleaseID" column="ReleaseID">
      <generator class="guid.comb"/>
    </id>

    <property name="Name" column="Name"   type="System.String"  length="100" />
    <property name="CreateTime" column="CreateTime"   type="System.DateTime"  />
    <property name="Creator" column="Creator"   type="System.String"  length="32" />
    <property name="PeriodFrom" column="PeriodFrom"   type="System.DateTime"  />
    <property name="PeriodTo" column="PeriodTo"   type="System.DateTime"  />
    <property name="ProjectID" column="ProjectID"  />

    <set lazy="true" cascade="all" inverse="false" table="Feature" access="field.camelcase-underscore" name="Features" >
      <key column="ReleaseID"/>
      <one-to-many class="VisualAgile.Model.Feature, VisualAgile.Model" />
    </set>
    
   <set lazy="true" cascade="all" inverse="false" table="Iteration" access="field.camelcase-underscore" name="Iterations" >
      <key column="ReleaseID"/>
      <one-to-many class="VisualAgile.Model.Iteration, VisualAgile.Model" />
    </set>
  
  </class>
</hibernate-mapping>

